﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Reflection;

namespace SimpleNotify.PushClient.Views
{
    public partial class AboutView : Form
    {
        public AboutView()
        {
            InitializeComponent();
        }

        private void link_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Process.Start("http://simplenotify.codeplex.com");
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void AboutView_Load(object sender, EventArgs e)
        {
            string client = String.Format("{0}", Environment.MachineName).ToUpper();
            string server = String.Format("{0}", Properties.Settings.Default.Server).ToUpper();
            Version v = Assembly.GetExecutingAssembly().GetName().Version;
            lblVersion.Text = String.Format("Version {0}.{1} (Build {2})", v.Major, v.Minor, v.Build);            
        }
    }
}
